// BusinessLogic.h
#ifndef BUSINESSLOGIC_H
#define BUSINESSLOGIC_H

#include <QJsonArray>
#include <QJsonObject>
#include <QVariant>
#include "sqlitemanager.h"

class BusinessLogic {
public:
    BusinessLogic();
    // 获取考勤列表
    QJsonArray getAttendList();
    // 添加考勤记录
    bool addAttendRecord(const QString& userId, const QString& time);
    //注册员工人脸信息
    bool RegisterEmployee();

private:
    SqliteManager* dbManager; // 数据库管理器实例
};

#endif // BUSINESSLOGIC_H
